#include <stdio.h>
#include <math.h>
int main() {
    double v,r,c,w,a;
    int n;
    scanf("%lf %lf %lf %d", &v, &r, &c, &n);
    r = c * r, r *= r, v = v * v * r; 
    while(n--){
	scanf("%lf", &a);
	printf("%.3lf\n", sqrt(v * a * a / (1 + r * a * a)));
    }
    return 0;
}
